#ifndef SeqJacobi_hpp
#define SeqJacobi_hpp

#include <vector>

class ParallelJacobi {
	
	std::vector<std::vector<double> > A;
	std::vector<double> B;
	std::vector<double> x;
	bool solved;
	double error;
	int maxIterations;
	
	int pid;
	int nprocesses;

public:

	ParallelJacobi (std::vector<std::vector<double> >& A,
				    std::vector<double>& B,
				    std::vector<double>& x_0,
				    double error,
				    int maxIterations,
				    int pid,
				    int nprocesses);


	std::vector<double> solve (int * iterations = 0);

};


#endif
